﻿using AnlianCommon.Common.Domains.Addresses;
using AnlianCommon.Common.Domains.BankCustomers;
using AnlianCommon.Common.Domains.BeginningManagement;
using AnlianCommon.Common.Domains.BreedingManagement;
using AnlianCommon.Common.Domains.OrganizationalUnits;
using AnlianCommon.Common.Domains.ProductionManagement;
using AnlianCommon.Common.Domains.PromptReport;
using AnlianCommon.Common.Domains.SheepFarmHouse;
using AnlianCommon.Common.Domains.SheepManagement;
using AnlianCommon.Common.Domains.UserPermissions;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AnlianCommon.Common.DbContexts
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions<MyDbContext> options) : base(options) { }

        #region 用户管理
        public DbSet<BasicInfo> BasicInfos { get; set; }
        public DbSet<Permission> Permissions { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<Personnel> Personnels { get; set; }
        public DbSet<Role> Roles { get; set; }
        public DbSet<RolePerm> RolePerms { get; set; }
        #endregion
        #region 育种管理
        public DbSet<MeasurementBody> MeasurementBodies { get; set; }
        public DbSet<PhaseDetermination> PhaseDeterminations { get; set; }
        public DbSet<SheepWeighed> SheepWeigheds { get; set; }
        #endregion
        #region 银行客户
        public DbSet<Bankaccount> Bankaccounts { get; set; }
        public DbSet<Client> Clients { get; set; }
        public DbSet<GPprice> GPprices { get; set; }
        public DbSet<Vendor> Vendors { get; set; }
        public DbSet<Vendorcontact> Vendorcontacts { get; set; }
        public DbSet<SheepSell> SheepSells { get; set; }
        public DbSet<SheepPurchase> SheepPurchases { get; set; }
        #endregion
        #region 羊只管理
        public DbSet<SheepCulling> SheepCullings { get; set; }
        public DbSet<SheepDie> SheepDices { get; set; }
        #endregion
        #region 羊场栋舍
        public DbSet<Cottage> Cottages { get; set; }
        public DbSet<CottageType> CottageTypes { get; set; }
        public DbSet<Field> Fields { get; set; }
        public DbSet<SheepFarm> SheepFarms { get; set; }
        #endregion
        #region 提示报表
        public DbSet<ChildbirthTip> ChildbirthTips { get; set; }
        public DbSet<FirstPregnancyTestPrompt> FirstPregnancyTestPrompts { get; set; }
        #endregion
        #region 生产管理
        public DbSet<BreedingHistorys> BreedingHistorys { get; set; } 
        public DbSet<Breedingmother> Breedingmothers { get; set; } 
        public DbSet<Breedingsetting> Breedingsettings { get; set; } 
        public DbSet<Crossbreeding> Crossbreedings { get; set; } 
        public DbSet<EwesGiveBirth> EwesGiveBirths { get; set; } 
        public DbSet<LambWeaning> LambWeanings { get; set; } 
        public DbSet<PregnancyTest> PregnancyTests { get; set; } 
        public DbSet<Record> Records { get; set; } 
        public DbSet<Seedweaning> Seedweanings { get; set; } 
        public DbSet<SheepFile> SheepFiles { get; set; } 
        public DbSet<SheepTransfer> SheepTransfer { get; set; }
        public DbSet<Descendent> Descendents { get; set; }
        public DbSet<SheepArchives> SheepArchives { get; set; }
        public DbSet<StatusLevels> StatusLevels { get; set; }
        #endregion
        #region 公共管理
        public DbSet<Province> Provinces { get; set; }
        public DbSet<Directly> Directlys { get; set; }
        public DbSet<County> Countys { get; set; }
        #endregion
        #region 单位部门
        public DbSet<AccountingUnit> AccountingUnits { get; set; }
        public DbSet<Department> Departments { get; set; }
        public DbSet<DepartmentType> DepartmentTypes { get; set; }
        public DbSet<FirstLevel> FirstLevels { get; set; }
        public DbSet<Flat> Flats { get; set; }
        public DbSet<FunctionalSystem> FunctionalSystems { get; set; }
        public DbSet<SecondLevel> SecondLevels { get; set; }
        public DbSet<DepartmentTree> DepartmentTrees { get; set; }
        #endregion
        #region 期初管理
        public DbSet<Startofseason> Startofseasons { get; set; }
        #endregion
    }
}
